<div class="options-wrapper">
	<ul class="options-holder left">
		<li class="option"><h3 class="title">Lista aktualności</h3></li>
	</ul>
	
	<ul class="options-holder right">
		<li class="option"><a class="action add" href="<?php print $this->url(array('action' => 'add'), null)?>">Dodaj aktualność</a></li>
	</ul>
</div>
	

<form action="" method="post">
	<div class="options-wrapper">
		<ul class="options-holder left">
			<li class="option"><b class="action arrow-turn-270-left ico"></b></li>
			<li class="option separator"></li>
			<li class="option"><?php
				print $this->formSelect('action_type',null,null,array(
					'Wybierz akcje',
					'update' => 'Aktualizuj',
					'delete' => 'Usuń'
				))
			?></li>
			<li class="option separator">|</li>
			<li class="option"><?php print $this->formSubmit('default_action', 'Wykonaj akcję na zaznaczonych rekordach', array('class' => 'action save'))?></li>
		</ul>
	</div>

	
	<?php
		// render KontorX_DataGrid
		$renderer = new KontorX_DataGrid_Renderer_HtmlTable();
		$renderer->setModule('scaffold');
		$renderer->setPartial('_partial/dataGrid.phtml');

		print $this->grid->render($renderer);
	?>

</form>

<!-- 
<h2 class="title">Lista aktualności</h2>

<div class="options-wrapper">
	<ul class="options-holder left">
		<li class="option"><?php
			print $this->formSelect('action_type',null,null,array(
				'Wybierz akcje',
				'update' => 'Aktualizuj',
				'delete' => 'Usuń'
			))
		?></li>
		<li class="option separator">|</li>
		<li class="option"><?php print $this->formSubmit('default_action', 'Wykonaj akcje')?></li>
	</ul>
	
	<ul class="options-holder right">
		<li class="option add"><a href="<?php print $this->url(array('action' => 'add'), null)?>">Dodaj nową aktualność</a></li>
	</ul>
</div>

<div id="gridExample"></div>

 -->
<?php
//	/* @var $headLink Zend_View_Helper_HeadLink */
//	$headLink = $this->getHelper('HeadLink');
//	$headLink->offsetSetStylesheet('ext-all-300', 'js/ext/resources/css/ext-all.css');
//
//	/* @var $headScript Zend_View_Helper_HeadScript */
//	$headScript = $this->getHelper('HeadScript');
//	$headScript->offsetSetFile('1ext-base-300', 'js/ext/adapter/ext/ext-base.js')
//			   ->offsetSetFile('2ext-all-300',  'js/ext/ext-all.js')
//			   
//			   ->offsetSetFile('ext-ux-1',  'js/ext/ux/SlidingPager.js')
//			   ->offsetSetFile('ext-ux-2',  'js/ext/ux/SliderTip.js')
//			   ->offsetSetFile('ext-ux-3',  'js/ext/ux/PanelResizer.js')
//			   ->offsetSetFile('ext-ux-4',  'js/ext/ux/PagingMemoryProxy.js');
//
//	$renderer = new KontorX_DataGrid_Renderer_ExtGrid_Json(array(
//		'url' => 'news/news/list/locale/pl/format/ext'));
//	
////		$store = new KontorX_Ext_Data_Store_Grouping();
////		$store->setGroupField('site_name');
////		$store->setSortInfo(array(
////			'field' => 'site_name',
////			'direction' => 'ASC'
////		));
////		$store->setReader($renderer->getStore()->getReader());
//	
////	$renderer->setStore($store);
//
//	$renderer->getGridPanel()
//			 ->setTitle('Lista aktualności');
//
//	$render = $this->grid->render($renderer)->render('gridExample');
//
//	/* @var $inlineScript Zend_View_Helper_InlineScript */
//	$inlineScript = $this->getHelper('InlineScript');
//	$inlineScript->appendScript($render);